<template>
  <div class="index" >
    <div class="item" @click="h5TongXin">1.H5页面间通信机制</div>
    <div class="item" @click="h5Lifecircle">2.向H5暴露Web容器的生命周期</div>
    <div class="item" @click="h5Scan">3.支持H5调用扫描后返回扫码结果</div>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    components: {
    },
    data() {
      return {

      }
    },
    methods: {
      h5TongXin() {
        this.utils.doRouter(this, '/h5register', null)
      },
      h5Lifecircle() {
        this.utils.doRouter(this, '/lifecirclea', null)
      },
      h5Scan() {
        this.utils.doRouter(this, '/h5scan', null)
      }
    },
    created() {
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus">
  .index
    display block
    height 6rem
    line-height 6rem
    .item
      height .6rem
      line-height .6rem
      font-size .4rem
      margin .5rem 0 .5rem 0
      text-align center
</style>
